home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / matrixc.zip / 3D.H < prev    next >
C/C++ Source or Header  |  1989-11-19  |  758b  |  32 lines

  1. /* Type definitions */
  2. #ifndef defsmat
  3. #include <matrix.h>
  4. #endif
  5.  
  6. #ifndef defs3d
  7. #define defs3d 1
  8. #define pi (355.0/113.0)
  9.  
  10. typedef struct
  11. {
  12. int points;
  13. int lines;
  14. double *pdat;
  15. int  *ldat;
  16. } object,*objectptr;
  17.  
  18. /* function prototypes */
  19. int tran3(matrixptr m,double tx,double ty,double tz);
  20. int scale3(matrixptr m,double sx,double sy,double sz);
  21. int rot3(matrixptr m,double theta,int axis);
  22. int genrot(double px,double py,double pz,double qx,double qy,double qz,\
  23.            double gamma,matrixptr m);
  24. double angle(double ax,double ay);
  25. void p3mult(double *,matrixptr);
  26. int objcop(objectptr s,objectptr d);
  27. int init3d(void);
  28. void objtran(objectptr o,matrixptr m);
  29. void objprin(objectptr o);
  30. void objdraw(objectptr o);
  31. #endif
  32.